/**
 * Created with IntelliJ IDEA.
 * Description:
 * https://gitee.com/li--jiaqiang/java-test.git
 * git pull
 * git pull origin master
 * git pull origin master --allow-unrelated-histories
 * User: 86187
 * Date: 2022-05-08
 * Time: 17:48
 */

//Scanner scan = new Scanner(System.in);

import java.util.Scanner;

public class ListNode {
    public static void main(String[] args) {

        ListNode2 listNode = new ListNode2();

        listNode.addLast(5);
        listNode.addLast(9);
        listNode.addLast(3);
        listNode.addLast(15);
        listNode.addLast(24);
        listNode.addLast(12);

        Node head = listNode.reverseKGroup(listNode.head,3);

        listNode.display(head);
    }


}
